import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Account/Login'
import MainContainer from '@/components/main/main'
import PersonalInformation from '@/components/PersonalInformation/PersonalInformation'
import ClientIndex from '@/components/client/ClientIndex'
import editContract from '@/components/client/editContract'
import PriceIndex from '@/components/price/priceIndex'
import permission from '@/components/permission/permission'
import organization from '@/components/organization/organization'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      component: Login
    },
    {
      path: '/main',
      component: MainContainer,
      children:[
        {
          path: 'client',
          component: ClientIndex
        },
        {
          path: 'editContract',
          component: editContract
        },
        {
          path: 'PersonalInformation',
          component: PersonalInformation
        },
        {
          path: 'price',
          component: PriceIndex
        },
        {
          path: 'permission',
          component: permission
        },
        {
          path: 'organization',
          component: organization
        },
      ]

    },
  ]
})
